using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ButtonController : MonoBehaviour
{
    private Button setButton;
    public float difficulty;
    public GameManager gameManager;
    // Start is called before the first frame update
    void Start()
    {
        setButton = GetComponent<Button>();
        setButton.onClick.AddListener(SetGame);
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    void SetGame()
    {
        gameManager.GameStart(difficulty);
    }
}
